//
//  HeaderCollectionReusableView.m
//  LuckyRadio
//
//  Created by Mr、J on 15/11/19.
//  Copyright © 2015年 chenjun. All rights reserved.
//

#import "HeaderCollectionReusableView.h"

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width

#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define WIDTH_PRO(X) (X)*(SCREEN_WIDTH/375)

#define HEIGHT_PRO(Y) (Y)*(SCREEN_HEIGHT/667)

@implementation HeaderCollectionReusableView
- (void)dealloc
{
    [_nameLabel release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLabel = [[UILabel alloc]init];
        self.nameLabel.textAlignment = NSTextAlignmentLeft;
        self.nameLabel.frame = CGRectMake(WIDTH_PRO(10), WIDTH_PRO(10), WIDTH_PRO(100), HEIGHT_PRO(20));
        [self addSubview:self.nameLabel];
        [_nameLabel release];
        
    }
    return self;
}

@end
